<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en">
<!--<![endif]-->
<head>
	<%@ include file="/common/taglibs.jsp"%>
	<title>假期设置</title>
	<%@ include file="/common/meta.jsp"%>
	<link href="${ctx}/assets/plugins/jquery-autoComplete/jquery.autocomplete.css" rel="stylesheet" />
</head>
<body>
    <!-- begin #page-loader -->
	<div id="page-loader" class="fade in"><span class="spinner"></span></div>
	<!-- end #page-loader -->
	
    <div id="page-container" class="fade page-sidebar-fixed page-header-fixed">
	
		<%@ include file="/common/header.jsp"%>
		<%@ include file="/common/slider.jsp"%>
		<div id="content" class="content">
		    <ol class="breadcrumb pull-right">
				<li><a href="javascript:;"><fmt:message key="sys.healthcervix"/></a></li>
				<li><a href="javascript:;">系统设置</a></li>
				<li class="active">假期设置</li>
			</ol>
			<h1 class="page-header">
				用户管理  <!-- <small><fmt:message key="sys.healthcervix"/></small> -->
			</h1>
			
			<div class="row">
				<!-- begin col-12 -->
				<div class="col-md-12">
					<div class="panel panel-inverse">
						<div class="panel-heading">
							<form class="form-horizontal" id="searchForm" name="searchForm">
								<div class="form-group-bottom">	
									<div class="row">
										<div class="col-md-3">
											<label class="col-md-3 control-label ui-sortable">年份</label>
											<div class="col-md-8 ui-sortable">
												<select id="searchyear" name="searchyear" class="form-control">
													<option value="">请选择</option>
													<c:forEach var="yls" items="${yearlist}">
														<option value="${yls.id}">${yls.name}</option>
													</c:forEach>
												</select>
											</div>
										</div>
										<div class="col-md-3">
											<label class="col-md-3 control-label ui-sortable">状态</label>
											<div class="col-md-8 ui-sortable">
												<select id="searchDisabled" name="searchDisabled" class="form-control">
													<option value=""><fmt:message key="public.select.choose"></fmt:message></option>
													<option value="0">启用</option>
													<option value="1">禁用</option>
												</select>
											</div>
										</div>
										<div class="col-md-3">
										</div>
										<div class="col-md-3">
											<shiro:hasPermission name="user:list:search">
												<button id="searchBtn" name="searchBtn" class="btn btn-success btn-sm m-r-5 m-b-5" title="<fmt:message key='public.button_search'/>">
												<fmt:message key="public.button_search"/></button>
												<button id="uploadBtn" name="clearBtn" class="btn btn-danger btn-sm m-r-5 m-b-5" title="<fmt:message key='public.buttin_upload'/>">
												<fmt:message key="public.buttin_upload"/></button>
											</shiro:hasPermission>
										</div>
									</div>
								</div>
							</form>
						</div>
						<div class="panel-body">
	                        <p>
	                        	<shiro:hasPermission name="user:list:add">
	                       			<a id="addBtn" name="addBtn" href="javascript:;" class="btn btn-primary btn-sm"><i class="fa fa-plus"></i>新增</a>
	                       		</shiro:hasPermission>
							</p>
							<table id="holidaylist" class="table table-striped table-bordered table-hover">
								<thead>
									<tr>
										<th style="width:5%"><fmt:message key="public.list.index"/></th>
										<th style="width:12%">名称</th>
										<th style="width:11%">开始时间</th>
										<th style="width:11%">结束时间</th>
										<th style="width:5%">年份</th>
										<th style="width:20%"><fmt:message key="public.list.operation"/></th>
									</tr>
								</thead>
								<tbody>
								</tbody>
							</table>
						</div>
					</div>
				</div>
			</div>
			
			<div class="modal fade" id="actDlg" name="actDlg">
				<div class="modal-dialog">
					<form id="actForm" name="actForm" action="#" class="form-horizontal">
						<div class="modal-content">
							<div class="modal-header">
								<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
								<h4 class="modal-title"></h4>
							</div>
							<div class="modal-body">
								<div class="form-group">
				                	<label class="col-md-3 control-label ui-sortable">节假日<span class="required">*</span></label>
				                    <div class="col-md-9 ui-sortable">
				                        <input type="hidden" name="id" id="id"/>
										<input type="hidden" name="isDel" id="isDel"/>
										<input type="text" name="userName" id="userName" class="form-control"  maxlength="50"  style="width: 80%"/>
				                    </div>
			                    </div>
			                    <div class="form-group">
				                	<label class="col-md-3 control-label ui-sortable">开始时间<span class="required">*</span></label>
				                    <div class="col-md-9 ui-sortable">
				                        <input type="hidden" name="id" id="id"/>
										<input type="hidden" name="isDel" id="isDel"/>
										<input type="text" name="userName" id="userName" class="form-control"  maxlength="50"  style="width: 80%"/>
				                    </div>
			                    </div>
			                    <div class="form-group">
				                	<label class="col-md-3 control-label ui-sortable">结束时间<span class="required">*</span></label>
				                    <div class="col-md-9 ui-sortable">
				                        <input type="hidden" name="id" id="id"/>
										<input type="hidden" name="isDel" id="isDel"/>
										<input type="text" name="userName" id="userName" class="form-control"  maxlength="50"  style="width: 80%"/>
				                    </div>
			                    </div>
			                    
							</div>
							<div class="modal-footer-dialog">
								<a href="javascript:;" class="btn btn-sm btn-default" data-dismiss="modal"><fmt:message key="public.button_close"/></a>
								<button type="button" class="btn btn-sm btn-primary" id="actFormBtn"><fmt:message key="public.button_save"/></button>
							</div>
						</div>
					</form>
				</div>
			</div>
			

		</div>
		<!-- END PAGE -->    
	</div>
	<%@ include file="/common/footer.jsp" %>
	<script src="${ctx}/assets/js/jquery.dataTables.js"></script>
	<script src="${ctx}/assets/js/DT_bootstrap.js"></script>
	<script src="${ctx}/assets/plugins/jquery-autoComplete/jquery.autocomplete.js"></script>
	<script type="text/javascript" src="${ctx}/js/oabastic/holiday.js"></script> 
	<script type="text/javascript">
		jQuery(document).ready(function() {       
			hoildaybastic.initSearch();
		});
	</script>
</body>
</html>